package com.xinrui.sunnyday.service;

import com.github.pagehelper.PageInfo;
import com.xinrui.sunnyday.entity.QueryPageBean;
import com.xinrui.sunnyday.exception.SunnydayException;
import com.xinrui.sunnyday.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    PageInfo<Setmeal> findPage(QueryPageBean queryPageBean);

    void add(Setmeal setmeal, Integer[] checkGroupIds) throws SunnydayException;

    Setmeal findById(Integer id);

    List<Integer> findSetmealAndCheckGroupById(Integer id);

    void update(Setmeal setmeal, Integer[] ids) throws SunnydayException;

    void deleteById(Integer id) throws SunnydayException;

    List<String> findImgs();

    List<Setmeal> findAll();

    Setmeal findDetailById(Integer id);

    List<Map<String, Object>> findSetmealCount();
}
